home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
utils
/
filup605.zip
/
FILUPDAT.DOC
< prev
next >
Wrap
Text File
|
1996-05-30
|
6KB
|
147 lines
FILUPDAT.DOC 1 Revised: 05/30/96
Introduction:
This program is designed to make updating of files and source code both easier
and quicker. It compares a list of files in a source directory to a list of
files in a destination directory and copies any files that are newer than the
ones found in the destination directory. This is quicker than copying all of
the files with DOS wildcard commands and cleaner than copying everything when
you only want some of the files in the destination area.
The control card file:
FILUPDAT requires an ASCII control card file to be created. The control card
file can consist of five types of records:
(1) comments: These records start with semi-colons or colons or are blank.
They are available primarily for documenting what you're doing.
(2) source directory: These records start with "-S" (or "-F" for "from")
followed by the path to copy the files from. Something like "-SC:\QB45"
works fine.
(3) destination directory: These records start with "-D" (or "-T" for "to")
followed by the path to copy the files to. For example,
"-DJ:\EBBNEW\DOCS".
(4) exclusion specification: These records start with "-X" followed by a space
and one or more filespecs (typically with wildcards). For example, your
main file specification may be "*.*" but you can exclude any QuickBASIC
source code files or object modules by including a "-X *.BAS *.OBJ"
statement.
(5) files: These records have a single file name (e.g. "EBBFFILE.WP") that is
to be copied from the source directory to the destination directory. File
specifications can include standard DOS wildcards ("*" and "?"). A comment
can follow the file name provided the comment starts with a colon or a
semi-colon.
FILUPDAT.DOC 2 Revised: 05/30/96
Source and destination cards can be changed throughout the control card file.
Files are copied based on the most recent source/destination card before the
file card. Changing either the source or destination will reset the exclusion
specification so you have to respecify the -X card if desired.
Also note that cards are processed sequentially. The exclusion specification
card only affects file name card(s) which occur after it.
A sample control card file might look like this:
; Sample file
-SC:\PDOX
-DJ:\EBBNEW\PRGS
CUSTOM.SC
ADDRESS.SC
ZIPCODE.SC
; Specifying another source file path; destination still the same
-SC:\MINE
NEWUSER.SC
Specifying parameters:
Parameters for this program can be set in the following ways. The last setting
encountered always wins:
- Read from an *.INI file (see BRUCEINI.DOC file),
- Through the use of an environmental variable (SET FILUPDAT=whatever), or
- From the command line (see "Syntax" below)
FILUPDAT.DOC 3 Revised: 05/30/96
Syntax:
FILUPDAT { ctlfile | /Cctlfile }
[ /Flist_file [ /OVERWRITE | /APPEND | /-OVERWRITE | /OVERASK ] ]
[ /FULL ] [ /ALL ] [ /ERROR | /-ERROR ] [ /Q ] [ /Iinitfile | /-I ] [ /? ]
where:
"ctlfile" or "/Cctlfile" is the name of the control statement file. It can
include path information if necessary.
"/Flist_file" says you want a text file created which tells you what files were
considered and what happened to each of them. The "list_file" is the name of
the file. This is primarily used for checking the operation of the utility. The
file name can include path information if necessary.
"/OVERWRITE" says that if the list_file already exists, don't prompt before
overwriting it.
"/APPEND" says to append to the list_file if it already exists.
"/-OVERWRITE" says to abort if the output file exists already.
"/OVERASK" says to prompt if the output file exists already. This is the
default.
"/FULL" says to write out full comparison information in the list_file. This is
primarily for debugging purposes but it includes the numeric representation of
the date and time for both the source and destination files.
"/ALL" says to copy all files in your ctlfile regardless of relative ages.
"/ERROR" says that if any source or destination subdirectory is missing, give an
error message and abort the program. This is initially the default.
"/-ERROR" says that if any source or destination subdirectory is missing, give
an error message but continue processing.
"/Q" turns off the file-by-file status reporting.
"/Iinitfile" says to read an initialization file with the file name "initfile".
The file specification *must* contain a period. Initfiles are described in the
BRUCEINI.DOC file. Initially defaults to "/IFILUPDAT.INI".
"/-I" (or "/INULL") says to skip loading the initialization file.
"/?" or "/HELP" or "HELP" shows you the syntax for the command.
FILUPDAT.DOC 4 Revised: 05/30/96
Author:
Bruce Guthrie
Room H-4885
U.S. Dept of Commerce/ESA/STAT-USA
Washington, DC 20230
voice: (202) 482-3234
e-mail: bguthrie@doc.gov
You may freely copy and re-distribute this program; however, the U.S. Department
of Commerce neither guarantees nor assures compatibility of the program with all
computer software or hardware.
Foreign users: Please provide an Internet e-mail address in all correspondence.